@import url(https://db.onlinewebfonts.com/c/8ae15895cd813a33942b7b17c0fcc2fb?family=DeathRattle+BB);

@font-face {
    font-family: '28 Days Later';
    src:url('../Font/28 Days Later.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    height: 60px; /* Example height, adjust as needed */
    background-color: #201c29;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}
        
.header-logo {
    font-family: 'DeathRattle BB', sans-serif;
    font-size: 30px;
    color: white;
}

.header-logo img {
    max-width: 100%; /* Limits the image width to the container width */
    max-height: 60px; /* Adjust the maximum height as needed */
    object-fit: contain; /* Ensures the image is scaled properly without distortion */
}

.header-nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 18px;
    transition: color 0.3s ease;
}

.header-nav a:hover {
    color: #ff8a00;
}

.discord-nav-link {
    display: inline-flex; /* Aligns the icon with the text */
    align-items: center; /* Centers the icon vertically */
    margin-left: 10px; /* Adds some space before the icon */
  }
  
.discord-nav-icon {
    width: 75px; /* Adjust icon size as needed */
    height: auto;
  }

body {
    padding: 0;
    margin: 0;
    background-color: #17141d;
    color: white;
    font-family: 'DM Mono', monospace;
}

a {
    text-decoration: none;
}

.card-list {
    display: flex;
    flex-direction: column; /* Stacks cards vertically */
    padding: 3rem;
    overflow-x: hidden; /* Disable horizontal scroll */
    justify-content: center; /* Center cards vertically */
    align-items: center; /* Center cards horizontally */
    background: #17141d; /* Example background color */
}

.card-list::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
.card-list::-webkit-scrollbar-thumb {
    background: #201c29;
    border-radius: 10px;
    box-shadow: inset 2px 2px 2px hsla(0,0%,100%,.25), inset -2px -2px 2px rgba(0,0,0,.25);
}

.card-list::-webkit-scrollbar-track {
    background: linear-gradient(90deg,#201c29,#201c29 1px,#17141d 0,#17141d);
}

.card {
    height: 275px;
    width: 1000px;
    min-width: 250px;
    padding: 1.5rem;
    border-radius: 16px;
    background: #17141d;
    box-shadow: -1rem 0 3rem #000;
    display: flex;
    flex-direction: column;
    transition: .2s;
    margin: 0 auto 1rem auto; /* Added bottom margin for spacing */
    scroll-snap-align: start;
    clear: both;
    position: relative;
}

.card {
    position: relative; /* Needed for absolute positioning inside the card */
    /* Other existing styles for the card */
  }
  
  .card-image {
    width: 100%; /* Ensures the image covers the card */
    /* Other existing styles for the card image */
  }
  
  .server-info {
    position: absolute;
    bottom: 10px; /* Distance from the bottom of the card */
    right: 10px; /* Distance from the right side of the card */
    z-index: 10;
    right: 10px; /* Adjust as needed */
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    color: white; /* Text color */
    padding: 10px; /* Padding around text */
    border-radius: 5px; /* Optional rounded corners */
    font-family: var(--server-info-font-family, 'Arial'); /* Default font */
    font-size: var(--server-info-font-size, 14px); /* Default font size */
    font-weight: var(--server-info-font-weight, normal); /* Default font weight */
    font-style: var(--server-info-font-style, normal); /* Default font style */
    text-decoration: var(--server-info-text-decoration, none); /* Default text decoration */
  }
  
  .copy-icon {
    cursor: pointer; /* Indicates clickable */
    /* Additional styling for the copy icon */
  }

  .discord-box {
    position: absolute;
    z-index: 11;
    bottom: 10px; /* Position below the server info */
    right: 5px; /* Align to the right */
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    padding: 50px; /* Padding around the content */
    border-radius: 5px; /* Rounded corners */
    display: flex; /* Flex container for alignment */
    align-items: right; /* Center items vertically */
  }
  
  .discord-link {
    display: flex; /* Ensures flex alignment */
    align-items: center; /* Aligns icon and text vertically */
    text-decoration: none; /* Removes underline */
  }
  
  .discord-icon {
    width: var(--discord-icon-size, 50px); /* Adjustable size using CSS variable */
    height: auto; /* Maintain aspect ratio */
    cursor: pointer; /* Indicates the icon is clickable */
  }
  
  /* Additional responsive adjustments as needed */
  @media screen and (max-width: 768px) {
    /* Adjust styles for smaller screens */
  }

.card:focus-within ~ .card, .card:hover ~ .card {
    transform: none;  /* Adjusted for vertical layout */
}

.card:hover {
    transform: translateY(-rem);
}

.card:not(:first-child) {
    margin-left: auto;
}


.card-header {
    position: absolute; /* Position the header absolutely within the card */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1; /* Ensure the text is above the image */
    padding: 1.5rem; /* Adjust padding as needed */
    text-align: center;
}

    @keyframes shimmer {
    0% {
        background-position: -500px 0;
    }
    100% {
        background-position: 500px 0;
    }
}

.footer {
    background-color: #201c29;
    color: white;
    text-align: center;
    padding: 1rem 0;
    font-size: 16px;
    border-radius: 16px; /* Curved edges */
    margin-top: auto; /* Pushes the footer to the bottom */
}

.card-header h2 {
    font-size: 50%;
    margin: 1px 1px 1px;
    text-decoration: none;
    border: 0;
    display: inline-block;
    cursor: pointer;
    font-family: 'DeathRattle BB', sans-serif; /* Use DeathRattleBB font */

    /* Shimmer effect */
    background: linear-gradient(to right, #8FA7FC 20%, #3863FF 40%, #8FA7FC 60%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 3s linear infinite;
    
}

.card:hover .card-header h2 {
    /* Gradient effect on hover applied to text only */
    background: linear-gradient(to top, #ff8a00, #e52e71, #ff8a00, #e52e71);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fire 1s linear infinite; /* Stop the shimmer animation */
    font-size: 90px; /* Double the size */
}

.card img {
    border-radius: 16px; /* Rounded edges to match the card */
    width: 100%; /* Make the image take the full width of the card */
    height: 100%; /* Make the image take the full height of the card */
    object-fit: cover; /* Resize the image to maintain its aspect ratio while filling the element */
    object-position: center; /* Center the image within the element */
    position: absolute; /* Position the image absolutely within the card */
    top: 0;
    left: 0;
    z-index: 0; /* Ensure the image is below the text */
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-1px); }
    20%, 40%, 60%, 80% { transform: translateX(1px); }

}

.card:hover img {
    animation: shake .82s cubic-bezier(.36,.07,.19,.97) both;
}